#header {
    background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
    width: 100%;
    min-height: 60px;
    padding: 1rem 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0 0 0.35rem 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header h3 {
    color: white;
    margin: 0;
    font-weight: 700;
    display: inline-block;
    animation: shimmer 2.5s infinite;
    background: linear-gradient(90deg, #fff 0%, #c3dafe 50%, #fff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

#loginWrapper {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    background: #3283AC;
    background-image: url('../image/bg2.jpg');
    background-position-x: center;
    background-position-y: center;
    background-size: cover;
    background-repeat-x: no-repeat;
    background-repeat-y: no-repeat;
    background-attachment: fixed;
    background-origin: initial;
    background-clip: initial;
    padding-bottom: 70px;
}

#loginform {
    margin: 0 auto auto auto;
    align-content: center;
    margin-top: 120px;
    opacity: 0.9;
    font-family: "Microsoft YaHei UI";
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#loginform:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.card-header {
    background: #FFFFFF;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.card-body {
    text-align: center;
}

#footer {
    background: linear-gradient(90deg, #4e73df 0%, #224abe 100%);
    width: 100%;
    min-height: 60px;
    padding: 0;
    bottom: 0;
    left: 0;
    position: fixed;
    z-index: 10;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    border-radius: 0.35rem 0.35rem 0 0;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer h4 {
    text-align: center;
    color: #FFFFFF;
    margin: 0;
    font-family: "Microsoft YaHei UI";
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    height: auto;
    line-height: 60px;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

title {
    text-align: center;
}

/* 验证码按钮样式 */
#captchaButton {
    border: none;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#captchaButton:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 输入框图标动画 */
.input-group-addon i {
    transition: all 0.3s ease;
}

.form-control:focus+.input-group-addon i,
.form-group:hover .input-group-addon i {
    transform: scale(1.2);
    color: #4285f4;
}

.modern-input-group {
    position: relative;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(78, 115, 223, 0.08);
    padding: 8px 16px 8px 44px;
    transition: box-shadow 0.3s;
    padding-right: 90px;
    max-width: 370px;
    margin-left: auto;
    margin-right: auto;
}

.modern-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a4b8;
    font-size: 20px;
    pointer-events: none;
    transition: color 0.3s;
}

.modern-input-group:focus-within i {
    color: #4e73df;
}

.modern-input {
    border: none;
    outline: none;
    background: transparent;
    width: 70%;
    max-width: 260px;
    font-size: 16px;
    padding: 10px 0 10px 0;
    color: #222;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.3s;
}

.modern-input:focus {
    background: rgba(78, 115, 223, 0.06);
}

.modern-input-group label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a4b8;
    font-size: 15px;
    pointer-events: none;
    background: transparent;
    transition: 0.2s cubic-bezier(.4, 0, .2, 1);
}

.modern-input:focus+label,
.modern-input:not(:placeholder-shown)+label {
    top: 6px;
    left: 44px;
    font-size: 12px;
    color: #4e73df;
    background: rgba(255, 255, 255, 0.85);
    padding: 0 4px;
    border-radius: 6px;
}

.modern-input-group .checkinfo {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
}

#captchaButton {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 2px 6px;
    box-shadow: 0 1px 4px rgba(78, 115, 223, 0.08);
    transition: box-shadow 0.2s, background 0.2s;
    height: 36px;
    display: flex;
    align-items: center;
}

#captchaButton:hover {
    background: #e3eafe;
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.18);
}

#captchaButton img {
    height: 32px;
    width: auto;
    border-radius: 6px;
    display: block;
}

.opensource-tip {
    color: #fff;
    font-size: 15px;
    margin-left: 12px;
    letter-spacing: 1px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.opensource-tip span {
    color: #ffe082;
    font-weight: 500;
    margin: 0 2px 0 4px;
}

.github-link {
    color: #fff;
    margin-left: 2px;
    font-size: 20px;
    transition: color 0.2s, transform 0.2s;
    vertical-align: middle;
    display: inline-block;
}

.github-link:hover {
    color: #ffe082;
    transform: scale(1.18) rotate(-10deg);
    text-decoration: none;
}

.gitee-link {
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s;
}

.gitee-svg {
    display: inline-block;
    vertical-align: middle;
    transition: filter 0.2s, transform 0.2s;
    filter: grayscale(0.2) brightness(1);
}

.gitee-link:hover .gitee-svg {
    filter: drop-shadow(0 0 4px #c71d23) brightness(1.2);
    transform: scale(1.18) rotate(8deg);
}